package com.sz.designpattern.behavior11.vistor;

public class Music extends Web{

    public Music(String name) {
        super(name);
    }

    @Override
    public void accept(Visitor vistor) {
        vistor.visit(this);
    }

    @Override
    public void download() {
        System.out.println("Music.download  music");
    }

    public void playMusic(){
        System.out.println("Music.playMusic");
    }
}
